package com.zr.planClass.model;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import java.util.Date;

/**
 * Created by 天赐 on 2019/12/20.
 */
@Data
public class PlanClassVo {


    private Integer id;
    @NotBlank(message = "新增时,名称不能为空")
    private String name;
    @NotBlank(message = "新增时,编码不能为空")
    private String code;
    private String remark;
    @NotNull(message = "新增时,状态不能为空")
    private Boolean status;
    private String StatusName;
    /*设置日期格式*/
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone = "Asia/beijing")
    private Date createTime;
    private String createName;
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone = "Asia/beijing")
    private Date updateTime;
    private String updateName;
}
